<template>
  <div>
    <exportExcel v-permission="'colseAccount:export'" :url="'/canteen/account/export'" :params="exportExcelParams" file-name="销户账户" />
  </div>
</template>

<script>
export default {
  components: {},
  mixins: [],
  props: {},
  data() {
    return {
      exportExcelParams: { state: 2 },
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    // 获取查询条件
    getQueryParams() {
      const newParam = this.addQueryParams()
      const param = { ...this.queryParam, ...newParam }
      param.pageNum = this.ipagination.pageNum
      param.pageSize = this.ipagination.pageSize
      this.exportExcelParams = { ...this.exportExcelParams, ...param }
      return param
    },
    // 重置
    searchReset() {
      this.queryParam = {}
      this.exportExcelParams = { state: 2 }
      this.loadData(1)
    },
  }
}
</script>

<style lang="scss" scoped>
</style>
